package com.itkaien.javaeebased;

import com.alibaba.fastjson2.JSONObject;
import jakarta.servlet.http.HttpServlet;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import javax.swing.*;
import org.apache.coyote.Request;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;

public class test {


    @PostMapping
    public void test(@RequestBody JSONObject requestbody, HttpServletRequest request, HttpServletResponse response){


//        Boolean flag = request.getHeader("version").equals("v2");
//        if (flag){
//
//        }else {
//
//        }
//
//        if (StringUtils.isEmpty(request.getHeader("version").equals("v2")))


    }



    public static void main(String[] args) {

        JFrame framegame = new JFrame();
        framegame.setSize(603,680);
        framegame.setVisible(true);


        //2.创建一个登陆页面、
        JFrame framegamelogin = new JFrame();
        framegamelogin.setSize(488,430);
        framegamelogin.setVisible(true);


        //3.创建一个注册页面
        JFrame regster = new JFrame();
        regster.setSize(488,500);
        regster.setVisible(true);



    }

}
